<?php
$form = $this->beginWidget('CActiveForm', array(
    'id' => 'site-administrator-menu-form',
    'enableAjaxValidation' => false,
    'htmlOptions' => array('enctype' => 'multipart/form-data'),
        ));

$parent_menu = site_administrator_menu::parentMenu();


?>
<div class="block">
    <div class="alert alert_grey">
        <img height="24" width="24" src="<?php echo Yii::app()->params['backendUrl']; ?>/images/icons/small/grey/alert_2.png">
        Fields with <span class="required"><strong>*</strong></span> are required.
    </div>

    <p class="note">Fields with <span class="required">*</span> are required.</p>

    <?php echo $form->errorSummary($model); ?>

    <div class="input_group">
        <?php echo $form->labelEx($model, 'administrator_menu_par_id'); ?>
        <?php echo $form->dropDownList($model, 'administrator_menu_par_id', $parent_menu); ?>

    </div>

    <?php echo $form->labelEx($model, 'administrator_menu_title'); ?>
    <?php echo $form->textField($model, 'administrator_menu_title', array('size' => 60, 'maxlength' => 255)); ?>


    <?php echo $form->labelEx($model, 'administrator_menu_link'); ?>
    <?php echo $form->textField($model, 'administrator_menu_link', array('size' => 60, 'maxlength' => 100)); ?>



    <button class="button_colour round_all"><img height="24" width="24" alt="Bended Arrow Right" src="<?php echo Yii::app()->params['backendUrl']; ?>/images/icons/small/white/bended_arrow_right.png"><span><?php echo ($model->isNewRecord) ? 'Create' : 'Save'; ?></span></button>

</div>

<?php $this->endWidget(); ?>
<!-- form -->